package com.gkusbsdk;

public class SZUSBCommand {
	
	public static final int CMD_RECORDTIME_CTRL = 0x01;     // 录像时间 (返回值 0:1分钟 1:3分钟 2:5分钟 )
	public static final int CMD_RESOLUTION_CTRL = 0x02;		// 分辨率  (返回值详情参见RESULT_RESOLUTION)
	public static final int CMD_GSENSOR = 0x05;				// 传感器(0:低 1:中 2:高)
	public static final int CMD_AUDIO_RECORD = 0x06;		// 录音频(0:录制音频 1:不录制音频)
	public static final int CMD_RECORD_AUTO_MANAL = 0x08;	// 自动录像开关 (0:自动录像 1:手动录像)
	public static final int CMD_RECORD_VERSION = 0x09;		// 记录仪版本
	public static final int CMD_SDFORMAT = 0x0a;			// SD卡格式化
	public static final int CMD_DEFAULT_FACTORY = 0x0b;		// 恢复出厂设置
	public static final int CMD_SYNC_TIME = 0x0d;			// 时间同步 格式:"2018-08-02_01:01:00"

	public static class PROTOCOL_TYPE{

		public static final int TYPE_OLD = 0;		// 老协议
		public static final int TYPE_NEW = 1;		// 新协议
	}

	public static class PRODUCT_TYPE{

		public static final int GK8602_A = 0;
		public static final int GK8602_B = 1;
		public static final int GK6802_A = 2;
		public static final int GK6802_B = 3;
	}

	public static class DATA_TYPE{

		public static final int LIVE_DATA = 1;
		public static final int PALYBACK_DATA = 2;
		public static final int PHOTO_DATA = 3;
		public static final int ICON_DATA = 4;
		public static final int FILELIST_DATA = 5;
		public static final int FILEINFO_DATA = 6;
		public static final int RECORDDATE_DATA = 7;
	}

	public static class VIDEO_FILE_CONTROL{

		public static final int CONTROL_UNLOCK = 1;			// 解锁
		public static final int CONTROL_LOCK = 2;			// 加锁
		public static final int CONTROL_DELETE = 3;			// 删除
		public static final int CONTROL_CAPTURE2LOCK = 5;	// 紧急视频抓拍
		public static final int CONTROL_PLAY = 6;			// 播放
		public static final int CONTROL_STOP = 7;			// 停止
		public static final int CONTROL_RESETINDEX = 8;		// 恢复索引
		public static final int CONTROL_PAUSE = 9;			// 暂停
		public static final int CONTROL_RESUM = 10;			// 恢复
		public static final int CONTROL_FILENAME_LIST = 11; // 视频文件列表搜索请求
		public static final int CONTROL_GETFILEINFO = 12;	// 获取文件信息
		public static final int CONTROL_ENTER_FILELIST = 13; // 进入文件列表
		public static final int CONTROL_EXIT_FILELIST = 14;  // 退出文件列表
		public static final int CONTROL_CANCEL_CAPTURE2LOCK = 16;  // 取消加锁
	}

	public static class PHOTO_FILE_CONTROL{

		public static final int CONTROL_CAPTURE = 1;		// 现场抓拍
		public static final int CONTROL_DELETE =2;			// 删除照片
		public static final int CONTROL_PLAY = 3;			// 显示照片
		public static final int CONTROL_STOP = 4;			// 停止显示
		public static final int CONTROL_RESETINDEX = 5;		// 重置索引
	}

	public static class STATUS_CONTROL{

		public static final int STATUS_STREAM = 1;		 // 视频流状态	RESULT_STREAM
		public static final int STATUS_SDCARD_EXSIT = 2; // SD卡是否存在 RESULT_SDCARD_EXSIT
		public static final int STATUS_PLAYBACK_ON = 3;	 // 是否正在回放  RESULT_PLAYBACK_ON
		public static final int STATUS_UVC_MODE = 4;	 // uvc处于那种模式 （预览，回放视频，回放照片） RESULT_UVC_MODE
		public static final int STATUS_CAPTRUE = 5;		 // 拍照状态 RESULT_REQ_NORMAL
		public static final int STATUS_DELETE_VIDEOFILE = 6;  // 录像文件是否删除成功 RESULT_REQ_NORMAL
		public static final int STATUS_DELETE_PHOTOFILE = 7;  // 照片删除是否成功 RESULT_REQ_NORMAL
		public static final int STATUS_LOCK_FILE = 8; // 锁定文件是否成功 RESULT_REQ_NORMAL
		public static final int STATUS_UNLOCK_FILE = 9; // 解锁文件是否成功 RESULT_REQ_NORMAL
		public static final int STATUS_GENERATE_MERGE = 10; // 产生紧急视频是否成功 RESULT_REQ_NORMAL
		public static final int STATUS_SDCARD_FORMAT = 11; // sd卡格式化是否成功 RESULT_REQ_NORMAL
		public static final int STATUS_PAUSE_PLAYBACK = 12; // 是否处于暂停回放 RESULT_PAUSE_PLAYBACK
		public static final int STATUS_HURRY_FINISH = 13;	// 紧急视频是否完成
		public static final int STATUS_PLAYBACK_FINISH=14;	// 当前回放播放是否结束
		public static final int STATUS_PLAYBACK_DURATION = 64; // 当前回放视频时间长度 unsigned long
		public static final int STATUS_VIDEOFILE_INFO = 65;		// 视频文件信息 RESULT_RESOLUTION
		public static final int STATUS_PHOTOFILE_INFO = 66;		// 照片文件信息
	}

	public static class SWITCH{

		public static final int OPEN = 0;
		public static final int CLOSE = 1;
	}

	public static class STATUS_RECORD{

		public static final int RECORD_UNKNOWN = -1;
		public static final int NORECORD_EXSIT_SD = 0;
		public static final int RECORDING = 1;
		public static final int NORECORD_NO_EXSIT_SD = 2;
		public static final int NORECORD_EXSIT_SD_NO_SPACE = 3;
	}

	public static class FILE_TYPE{

		public static final int CYCLE_FILE = 0;
		public static final int HURRY_FILE = 1;
		public static final int PHOTO_FILE = 2;
		public static final int ALL_FILE = 3;
	}

	public static class STATUS_LOCK{

		public static final int LOCK = 0;
		public static final int UNLOCK =1;
	}

	public static class FINISH_STATUS{

		public static final int FINISH = 0; // 完成
		public static final int WAITING = 1; // 未完成
	}

	public static class STREAM_FORMAT{

		public static final int MJPEG = 9; // MJPEG
		public static final int H264 = 10; // h264
	}

	public static class RESULT_STREAM{

		public static final int STREAM_OFF = 0;	// 不在发流
		public static final int STREAM_ON = 1;	// 正在发流
	}

	public static class RESULT_SDCARD_EXSIT{

		public static final int EXSIT = 0;		// 存在
		public static final int NO_EXSIT = 1;	// 不存在
	}

	public static class RESULT_PLAYBACK_ON{

		public static final int EXIT_PLAYBACK = 0;  // 退出回放
		public static final int PLAYBACKING = 1;	// 正在回放
	}

	public static class RESULT_UVC_MODE{

		public static final int LIVING = 1;			// 正在预览
		public static final int PLAYBACKING = 2;	// 正在回放
		public static final int PHOTOPLAYING = 3;	// 正在播图片
	}

	public static class RESULT_REQ_NORMAL{

		public static final int SUCCESS = 0; 		// 成功
		public static final int FAILED = 1;			// 失败
	}

	public static class RESULT_PAUSE_PLAYBACK{

		public static final int PAUSE_ERR = 0;		// 回放中
		public static final int PAUSE_OK = 1;		// 暂停状态
	}

	public static class RESULT_RESOLUTION{

		public static final int P1080 = 0;			// 1080X1920
		public static final int P720 = 1;			// 720X1280
		public static final int VGA = 2;			// 640X360
	}

	public static class RESULT_PLAYBACK{

		public static final int PLAY = 0;			// 播放状态
		public static final int PAUSE = 1;			// 暂停状态
		public static final int STOP = 2;			// 停止/播放完成状态
	}

	public static class RESULT_RECORDTIME{

		public static final int ONE_MIN = 0;	 // 1分钟
		public static final int THREE_MIN = 1;   // 3分钟
		public static final int FIVE_MIN = 2;	 // 5分钟
	}

	public static class RESULT_LEVER{

		public static final int LOW = 0;
		public static final int MIDDLE = 1;
		public static final int HIGH =2;
	}

	public static class RESULT_RECORDMODE_SWITCH{

		public static final int AUTO_RECORD = 0; // 自动录像
		public static final int MANAL_RECORD = 1; // 手动录像
	}

	public static class RESULT_RECORD_AUDIO{

		public static final int AUDIO_RECORD = 0; 	// 录制音频
		public static final int NOAUDIO_RECORD = 1; // 不录制音频
	}
}

